using System.Diagnostics;
using Debug = UnityEngine.Debug;

namespace SimpleCore
{
    public static class LogHelper
    {
        [Conditional("PRINT_LOG")]
        public static void Log(params object[] contents)
        {
            string result = "";
            for (int i = 0; i < contents.Length; i++)
            {
                result += $"{contents[i]}\t";
            }

            Debug.Log(result);
        }

        [Conditional("PRINT_WARNING")]
        public static void LogWarning(params object[] contents)
        {
            string result = "";
            for (int i = 0; i < contents.Length; i++)
            {
                result += $"{contents[i]}\t";
            }

            Debug.LogWarning(result);
        }
        
        [Conditional("PRINT_ERROR")]
        public static void LogError(params object[] contents)
        {
            string result = "";
            for (int i = 0; i < contents.Length; i++)
            {
                result += $"{contents[i]}\t";
            }

            Debug.LogError(result);
        }
    }
}